home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14122 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: sun.rhrk.uni-kl.de!knapmey
  2. From: knapmey@tecmath.de (Christian Knapmeyer)
  3. Newsgroups: comp.unix.programmer,comp.lang.c,comp.unix.internals
  4. Subject: Re: C compiler Error on EXEC SQL
  5. Date: 12 Apr 1996 07:57:22 GMT
  6. Organization: Universitaet Kaiserslautern
  7. Message-ID: <KNAPMEY.96Apr12095723@tms2.tecmath.de>
  8. References: <4kkej2$3ta@news.cc.utah.edu>
  9. NNTP-Posting-Host: tms2.tecmath.de
  10. In-reply-to: dpncc@utah.state.ut.us's message of 12 Apr 1996 02:19:14 GMT
  11.  
  12.  
  13.  
  14. In article <4kkej2$3ta@news.cc.utah.edu> dpncc@utah.state.ut.us (NCC Network) writes:
  15.  
  16.   > 
  17.   > Hi
  18.   > 
  19.   > I post this for my friend who has no access to the internet and would like to
  20.   > get help from C experts in the Net. She has a C program left over from a guy
  21.   > left the company. The C source code is included below as well as the compiler
  22.   > error generated by HP UNIX. What is the EXEC SQL instruction ? It doesn't seem
  23.   > to be a standard C. 
  24.   > 
  25.   > I would appreciate any hints or comments.
  26.   > Thanks in advances.
  27.   > 
  28.   > Dennis. 
  29.   > 
  30.  
  31. [ source code deleted ]
  32.  
  33. This is the source of a relational database application.
  34. I don't know which database it is, cause SQL looks quite similar on the
  35. various systems. It could be, let's say Ingres, Oracle,.. or what else.
  36.  
  37. The source includes SQL-Statements introduced with "EXEC SQL".
  38. To compile it, you must first feed it through the precompiler
  39. of the database system, which replaces the "EXEC SQL" parts with
  40. some real C code and produces a file named *.c. 
  41. Then give this to your normal C compiler.
  42.  
  43. When linking the program you must add the link libraries that came
  44. with the database system.
  45.  
  46. Your friend should ask someone in her company about how to compile
  47. and link this stuff... hopefully there's someone else left who
  48. knows about database programming...
  49.  
  50. Greetings,
  51.   Christian
  52. --
  53.  ----------------------------------------------------------------------------
  54.   Dipl.-Inform. Christian Knapmeyer     Email: knapmey@tecmath.de
  55.   TecMath GmbH                          Voice: 06301/606-0  Fax: 06301/606-66
  56.   Sauerwiesen 2                         Face : Room 115
  57.   67661 Kaiserslautern, Germany         Disclaimer: as usual
  58.  ---------- press any key to continue. press any other key to quit.----------
  59.